<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateCommunity extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('community', function (Blueprint $table) {
            $table->bigIncrements('id');
            $table->string('community_name')->comment('小区名字');
            $table->string('community_address')->comment('小区地址');
            $table->string('community_developers')->comment('小区开发商');
            $table->string('community_mobile')->comment('小区服务中心电话');
            $table->string('community_person')->comment('小区负责人');
            $table->string('community_person_mobile')->nullable()->comment('小区负责手机号');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('community');
    }
}
